package com.cong.案例;

//逢七过
public class demo01 {
    public static void main(String[] args) {

        demo01 demo01 = new demo01();
        demo01.test01(100);
    }

    //定义一个方法
    public void test01(int sum) {
        for (int i = 1; i < sum; i++) {
            if (i%10==7 || i/10%10==7 || i%7==0) {
                System.out.print(i+" ");
            }
        }
    }
}
